projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73449a4
)
gtkmenutoolbutton: Use symbolic names for button numbers
author
Carlos Garcia Campos
<cgarcia@igalia.com>
Wed, 25 Jan 2012 17:38:50 +0000
(18:38 +0100)
committer
Carlos Garcia Campos
<carlosgc@gnome.org>
Fri, 27 Jan 2012 08:47:43 +0000
(09:47 +0100)
gtk/gtkmenutoolbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenutoolbutton.c
b/gtk/gtkmenutoolbutton.c
index afcd69adfed048e32c6addf4f4917889090f0b8b..b212a8bef9726636ff12b5441db69e777f510935 100644
(file)
--- a/
gtk/gtkmenutoolbutton.c
+++ b/
gtk/gtkmenutoolbutton.c
@@
-417,7
+417,7
@@
arrow_button_button_press_event_cb (GtkWidget *widget,
GdkEventButton *event,
GtkMenuToolButton *button)
{
- if (event->button ==
1
)
+ if (event->button ==
GDK_BUTTON_PRIMARY
)
{
popup_menu_under_arrow (button, event);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);